package com.dubbo.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dkt on 2017/11/09.
 */
public class HelloWorldMain {


    public static void main(String[] args){

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:app-context.xml");

        HelloWorld helloWorld = (HelloWorld) applicationContext.getBean("helloWorld");
        String name="文哥教你玩代码";
        System.out.println("开始调用服务");
        System.out.println(helloWorld.sayHello(name));
        System.out.println("调用服务结束");

    }
}
